package entities;

/**
 * @author Omri Barda		039725890 
 * @author Amit Joseph		034608547
 * @author Gilad Shpigel  	300162393
 * @author Elad Elbaz		040539959
 * @version June 2012
 */

import java.io.Serializable;

public class Request implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	final public static int WAITING = -1;
	final public static int NOT_APPROVED = 0;
	final public static int APPROVED = 1;
	private String examCode;
	private int creatorId;
	private Long extensionDurationTime;
	private String reasons;
	private int approved;

	/**
	 * empty constructor
	 */
	public Request() {
	}

	/**
	 * 
	 * @return request creator ID
	 */
	public int getCreatorId() {
		return creatorId;
	}

	/**
	 * 
	 * @param creatorId
	 *            of request
	 */
	public void setCreatorId(int creatorId) {
		this.creatorId = creatorId;
	}

	/**
	 * 
	 * @return exam code of request
	 */
	public String getExamCode() {
		return examCode;
	}

	/**
	 * 
	 * @param examCode
	 *            of request
	 */
	public void setExamCode(String examCode) {
		this.examCode = examCode;
	}

	/**
	 * 
	 * @return extension duration time of request
	 */
	public Long getExtensionDurationTime() {
		return extensionDurationTime;
	}

	/**
	 * 
	 * @param extensionDurationTime
	 *            of request
	 */
	public void setExtensionDurationTime(Long extensionDurationTime) {
		this.extensionDurationTime = extensionDurationTime;
	}

	/**
	 * 
	 * @return reasons of request
	 */
	public String getReasons() {
		return reasons;
	}

	/**
	 * 
	 * @param the
	 *            request reasons
	 */
	public void setReasons(String reasons) {
		this.reasons = reasons;
	}

	/**
	 * 
	 * @return the request approve status
	 */
	public int getApproved() {
		return approved;
	}

	/**
	 * 
	 * @param approved
	 *            the approve status
	 */
	public void setApproved(int approved) {
		this.approved = approved;
	}
}